package com.geek.factory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("materials")
@ApiModel("原料实体")
public class Materialx {
    @ApiModelProperty("主键ID")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("原料名称")
    private String name;

    @ApiModelProperty("原料类型")
    private String type;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("原料价格")
    private Double price;

    @ApiModelProperty("原料图片")
    private String pic;
}
